package ccnu.agile;

import ccnu.agile.config.resthelp.RequestConcurrent;
import ccnu.agile.utils.LogUtils;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@MapperScan(basePackages = "ccnu.agile.mapper")
public class WebsiteApplication {

    public WebsiteApplication(RequestConcurrent requestConcurrent) {
        requestConcurrent.log();
    }

    public static void main(String[] args) {
        Long startMillions = System.currentTimeMillis();
        SpringApplication.run(WebsiteApplication.class, args);
        LogUtils.info(WebsiteApplication.class, "=============website run success, wast {}ms=============", System.currentTimeMillis() - startMillions);
    }

}
